home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Sample Code / Snippets / Toolbox / ZoomWindow / DoWZoom.p (Read Me) next >
Encoding:
Text File  |  1993-01-18  |  1.1 KB  |  21 lines  |  [TEXT/MPS ]

  1.  
  2. DoWZoom.p is a Pascal routine which will perform the window zoom in and zoom
  3. out functions. It gives attractive results with most WDEFs because it uses the
  4. window's structure region rather than just its portRect.
  5.  
  6. Call DoWZoom in response to TrackBox returning true. Put the part code
  7. returned by TrackBox in the zoomDir parameter.
  8.  
  9. The best feature of DoWZoom is that it follows the Human Interface Guidelines
  10. in multiple-monitor system configurations, zooming properly onto the screen
  11. originally containing the greatest portion of the window. Now I know some of
  12. you think it should zoom onto the window containing the zoom box, but this is
  13. the method blessed by our human interface staff, so that's what I'm showing.
  14.  
  15. See also Human Interface Note #7. This routine is currently out of context and
  16. there is no "most useful" size for the window, so I simply use the entire
  17. screen. In practice, the window should be expanded only to the maximum useful
  18. size. A great example is the Finder in System Software Version 7.0. Its windows
  19. expand only to the point where the entire contents are visible (or until it
  20. runs out of real estate).
  21.